package com.qiqu.commen;

/**
 * @author Administrator
 */
public class Const {

    //token过期时间 毫秒
    public static final int TOKEN_AGE = 1000*60*30;
    //用于验证用户的字符串参数名，和前台约定
    public static final String AUTH_ID = "userId";

    public static final String AUTH_TOKEN = "token";

    public static final String USER_REDIS_SESSION="user_redis_session";
    //文件保存命名空间
    //public static final String FILE_SPACE="/home/qiqu";
    public static final String FILE_SPACE=System.getProperties().getProperty("user.home");
    //ffmpeg所在目录
    //public static final String FFMPEG_EXE="/usr/local/ffmpeg/ffmpeg-4.3.2/ffmpeg";
    public static final String FFMPEG_EXE="D:\\ruanjian\\java\\ffmpeg\\bin\\ffmpeg.exe";
    //没有分页的记录数
    public static final Integer PAGE_SIZE=8;

    /**
     * kk
     * 附件类型枚举
     */
    public enum Role{
        video(1,"视频"),
        photo(2,"图片");

        Role(int code,String desc){
            this.code = code;
            this.desc = desc;
        }
        public int code;
        public String desc;
        public int getCode() {
            return code;
        }
        public String getDesc() {
            return desc;
        }
    }

    /**
     * kk
     * 文章状态枚举
     */
    public enum Status{
        on(1,"发布中"),
        off(2,"下架中");

        Status(int code,String desc){
            this.code = code;
            this.desc = desc;
        }
        public int code;
        public String desc;
        public int getCode() {
            return code;
        }
        public String getDesc() {
            return desc;
        }
    }

}
